import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

import Home from '@/components/home'
import Investment from '@/components/investment'
import Friend from '@/components/friend'
import Mine from '@/components/mine'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '',
      redirect: '/home'
    },
    {
      path: '/home',
      name: '',
      component: Home
    },
    {
      path: '/investment',
      name: '',
      component: Investment
    },
    {
      path: '/friend',
      name: '',
      component: Friend
    },
    {
      path: '/mine',
      name: '',
      component: Mine
    }
  ]
})
